package com.kuangjia.student_ems.dto.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.kuangjia.student_ems.entity.Attendance;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalTime;

@Data
public class AttendanceRequest {
    
    @NotNull(message = "日期不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate date;
    
    @JsonFormat(pattern = "HH:mm:ss")
    private LocalTime checkInTime;
    
    @JsonFormat(pattern = "HH:mm:ss")
    private LocalTime checkOutTime;
    
    @NotNull(message = "考勤状态不能为空")
    private Attendance.AttendanceStatus status;
    
    private String remark;
} 